package org.example.zsbback.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Book {
    private int id;
    private String name;
    private String descri;
    private String author;
    private String pub;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date pubDate;
    private double price;
    private String img;
    private int tid;

}
